/*
 * adc.h
 *
 *  Created on: 05.10.2012
 *      Author: Roma Jam
 */

#ifndef ADC_H_
#define ADC_H_

extern uint16_t adc, dac;

#define ADC_ARRRESOLUTION   1

class Adc_t {
private:
    uint16_t ADC_Arr[ADC_ARRRESOLUTION];
    uint8_t i;
    uint32_t Timer;
public:
    void DAC_SetOutput(uint16_t Avalue);
    void Init(void);
    void Task(void);
};
extern Adc_t Adc;
#endif /* ADC_H_ */
